#include <iostream>

using namespace std;

int main(void)
{
	int tou, jiao;
	int ji, tu;

	cout << "tou: ";
	cin >> tou;
	cout << "jiao: ";
	cin >> jiao;

	tu = (jiao - tou * 2) / 2;
	ji = tou - tu;

	cout << "ji = " << ji << endl;
	cout << "tu = " << tu << endl;	

	return 0;
}
